<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.7.1" version="1.0">
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<lib desc="#Wiring" name="0">
    <tool name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </tool>
    <tool name="Constant">
      <a name="facing" val="south"/>
      <a name="value" val="0x0"/>
    </tool>
  </lib>
  <lib desc="#Gates" name="1">
    <tool name="NOT Gate">
      <a name="facing" val="south"/>
    </tool>
  </lib>
  <lib desc="#Plexers" name="2"/>
  <lib desc="#Arithmetic" name="3"/>
  <lib desc="#Memory" name="4">
    <tool name="ROM">
      <a name="contents">addr/data: 8 8
0
</a>
    </tool>
  </lib>
  <lib desc="#I/O" name="5"/>
  <lib desc="#Base" name="6">
    <tool name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
  </lib>
  <main name="main"/>
  <options>
    <a name="gateUndefined" val="ignore"/>
    <a name="simlimit" val="1000"/>
    <a name="simrand" val="0"/>
  </options>
  <mappings>
    <tool lib="6" map="Button2" name="Menu Tool"/>
    <tool lib="6" map="Button3" name="Menu Tool"/>
    <tool lib="6" map="Ctrl Button1" name="Menu Tool"/>
  </mappings>
  <toolbar>
    <tool lib="6" name="Poke Tool"/>
    <tool lib="6" name="Edit Tool"/>
    <tool lib="6" name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
    <sep/>
    <tool lib="0" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
    </tool>
    <tool lib="0" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="labelloc" val="east"/>
    </tool>
    <tool lib="1" name="NOT Gate"/>
    <tool lib="1" name="AND Gate"/>
    <tool lib="1" name="OR Gate"/>
  </toolbar>
  <circuit name="main">
    <a name="circuit" val="main"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(280,270)" to="(340,270)"/>
    <wire from="(370,440)" to="(430,440)"/>
    <wire from="(380,330)" to="(380,400)"/>
    <wire from="(360,330)" to="(360,400)"/>
    <wire from="(590,430)" to="(590,440)"/>
    <wire from="(390,450)" to="(580,450)"/>
    <wire from="(400,260)" to="(450,260)"/>
    <wire from="(300,260)" to="(350,260)"/>
    <wire from="(270,390)" to="(320,390)"/>
    <wire from="(180,260)" to="(300,260)"/>
    <wire from="(410,130)" to="(530,130)"/>
    <wire from="(370,430)" to="(370,440)"/>
    <wire from="(270,370)" to="(270,390)"/>
    <wire from="(410,110)" to="(410,130)"/>
    <wire from="(510,390)" to="(510,410)"/>
    <wire from="(430,140)" to="(540,140)"/>
    <wire from="(570,430)" to="(570,460)"/>
    <wire from="(410,270)" to="(410,300)"/>
    <wire from="(430,110)" to="(430,140)"/>
    <wire from="(410,210)" to="(410,240)"/>
    <wire from="(450,150)" to="(450,180)"/>
    <wire from="(270,310)" to="(270,340)"/>
    <wire from="(170,120)" to="(210,120)"/>
    <wire from="(450,150)" to="(550,150)"/>
    <wire from="(350,430)" to="(350,460)"/>
    <wire from="(320,250)" to="(360,250)"/>
    <wire from="(300,450)" to="(340,450)"/>
    <wire from="(400,410)" to="(440,410)"/>
    <wire from="(540,100)" to="(540,140)"/>
    <wire from="(470,160)" to="(560,160)"/>
    <wire from="(430,440)" to="(590,440)"/>
    <wire from="(340,240)" to="(370,240)"/>
    <wire from="(380,240)" to="(410,240)"/>
    <wire from="(310,360)" to="(330,360)"/>
    <wire from="(320,390)" to="(340,390)"/>
    <wire from="(330,360)" to="(350,360)"/>
    <wire from="(420,310)" to="(440,310)"/>
    <wire from="(400,260)" to="(400,300)"/>
    <wire from="(190,100)" to="(210,100)"/>
    <wire from="(450,110)" to="(450,150)"/>
    <wire from="(430,210)" to="(430,250)"/>
    <wire from="(390,450)" to="(390,490)"/>
    <wire from="(390,250)" to="(390,300)"/>
    <wire from="(560,100)" to="(560,160)"/>
    <wire from="(410,130)" to="(410,180)"/>
    <wire from="(450,210)" to="(450,260)"/>
    <wire from="(470,110)" to="(470,160)"/>
    <wire from="(440,80)" to="(520,80)"/>
    <wire from="(300,470)" to="(560,470)"/>
    <wire from="(380,240)" to="(380,300)"/>
    <wire from="(230,80)" to="(300,80)"/>
    <wire from="(470,210)" to="(470,270)"/>
    <wire from="(190,250)" to="(320,250)"/>
    <wire from="(270,310)" to="(330,310)"/>
    <wire from="(390,330)" to="(390,400)"/>
    <wire from="(410,270)" to="(470,270)"/>
    <wire from="(370,330)" to="(370,400)"/>
    <wire from="(340,110)" to="(340,240)"/>
    <wire from="(320,110)" to="(320,250)"/>
    <wire from="(440,70)" to="(440,80)"/>
    <wire from="(300,70)" to="(300,80)"/>
    <wire from="(340,390)" to="(340,400)"/>
    <wire from="(320,390)" to="(320,400)"/>
    <wire from="(170,270)" to="(280,270)"/>
    <wire from="(300,450)" to="(300,470)"/>
    <wire from="(300,470)" to="(300,490)"/>
    <wire from="(340,430)" to="(340,450)"/>
    <wire from="(360,430)" to="(360,450)"/>
    <wire from="(300,110)" to="(300,260)"/>
    <wire from="(470,160)" to="(470,180)"/>
    <wire from="(190,100)" to="(190,250)"/>
    <wire from="(180,110)" to="(180,260)"/>
    <wire from="(170,120)" to="(170,270)"/>
    <wire from="(200,90)" to="(200,240)"/>
    <wire from="(530,100)" to="(530,130)"/>
    <wire from="(340,270)" to="(340,300)"/>
    <wire from="(350,460)" to="(350,490)"/>
    <wire from="(580,430)" to="(580,450)"/>
    <wire from="(390,250)" to="(430,250)"/>
    <wire from="(510,410)" to="(550,410)"/>
    <wire from="(180,110)" to="(210,110)"/>
    <wire from="(560,430)" to="(560,470)"/>
    <wire from="(240,310)" to="(270,310)"/>
    <wire from="(350,460)" to="(570,460)"/>
    <wire from="(280,110)" to="(280,270)"/>
    <wire from="(360,450)" to="(390,450)"/>
    <wire from="(350,360)" to="(350,400)"/>
    <wire from="(350,260)" to="(350,300)"/>
    <wire from="(330,360)" to="(330,400)"/>
    <wire from="(430,140)" to="(430,180)"/>
    <wire from="(430,440)" to="(430,490)"/>
    <wire from="(200,90)" to="(210,90)"/>
    <wire from="(360,250)" to="(360,300)"/>
    <wire from="(200,240)" to="(340,240)"/>
    <wire from="(370,240)" to="(370,300)"/>
    <wire from="(550,100)" to="(550,150)"/>
    <comp lib="0" loc="(520,80)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="1" loc="(270,370)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(550,410)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(400,410)" name="SUM4B"/>
    <comp lib="1" loc="(430,210)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(240,310)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="C1"/>
    </comp>
    <comp lib="5" loc="(440,70)" name="Hex Digit Display"/>
    <comp lib="0" loc="(230,80)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(310,360)" name="Constant">
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="0" loc="(280,110)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
    </comp>
    <comp lib="0" loc="(410,110)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
    </comp>
    <comp lib="0" loc="(340,110)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
    </comp>
    <comp loc="(420,310)" name="SUM4B"/>
    <comp lib="0" loc="(300,490)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(440,410)" name="Constant">
      <a name="facing" val="west"/>
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="1" loc="(410,210)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(430,490)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(320,110)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
    </comp>
    <comp lib="0" loc="(350,490)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(390,490)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(300,110)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
    </comp>
    <comp lib="0" loc="(440,310)" name="Constant">
      <a name="facing" val="west"/>
    </comp>
    <comp lib="1" loc="(470,210)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(470,110)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
    </comp>
    <comp lib="0" loc="(430,110)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
    </comp>
    <comp lib="1" loc="(450,210)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="5" loc="(510,390)" name="Hex Digit Display"/>
    <comp lib="0" loc="(450,110)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
    </comp>
    <comp lib="5" loc="(300,70)" name="Hex Digit Display"/>
  </circuit>
  <circuit name="FA">
    <a name="circuit" val="FA"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(130,110)" to="(130,120)"/>
    <wire from="(130,130)" to="(130,140)"/>
    <wire from="(310,160)" to="(330,160)"/>
    <wire from="(200,130)" to="(200,170)"/>
    <wire from="(180,120)" to="(230,120)"/>
    <wire from="(130,120)" to="(150,120)"/>
    <wire from="(130,130)" to="(150,130)"/>
    <wire from="(180,130)" to="(200,130)"/>
    <wire from="(270,130)" to="(270,150)"/>
    <wire from="(220,130)" to="(220,180)"/>
    <wire from="(270,150)" to="(280,150)"/>
    <wire from="(260,130)" to="(270,130)"/>
    <wire from="(200,170)" to="(280,170)"/>
    <wire from="(220,130)" to="(230,130)"/>
    <wire from="(120,110)" to="(130,110)"/>
    <wire from="(120,140)" to="(130,140)"/>
    <wire from="(120,180)" to="(220,180)"/>
    <wire from="(260,120)" to="(330,120)"/>
    <comp lib="0" loc="(120,180)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Cin"/>
    </comp>
    <comp lib="0" loc="(120,110)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp lib="0" loc="(330,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Cout"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(120,140)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="0" loc="(330,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(310,160)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp loc="(260,120)" name="HA"/>
    <comp loc="(180,120)" name="HA"/>
  </circuit>
  <circuit name="HA">
    <a name="circuit" val="HA"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(90,120)" to="(120,120)"/>
    <wire from="(120,160)" to="(150,160)"/>
    <wire from="(90,140)" to="(100,140)"/>
    <wire from="(100,140)" to="(140,140)"/>
    <wire from="(100,140)" to="(100,180)"/>
    <wire from="(120,120)" to="(120,160)"/>
    <wire from="(120,120)" to="(140,120)"/>
    <wire from="(180,170)" to="(200,170)"/>
    <wire from="(180,130)" to="(200,130)"/>
    <wire from="(100,180)" to="(150,180)"/>
    <comp lib="0" loc="(90,120)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="A"/>
    </comp>
    <comp lib="0" loc="(200,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(200,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="C"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(90,140)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="B"/>
    </comp>
    <comp lib="1" loc="(180,130)" name="XOR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(180,170)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
  </circuit>
  <circuit name="SUM4B">
    <a name="circuit" val="SUM4B"/>
    <a name="clabel" val="SUM 4B"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(100,80)" to="(290,80)"/>
    <wire from="(290,170)" to="(290,180)"/>
    <wire from="(290,70)" to="(290,80)"/>
    <wire from="(440,160)" to="(440,180)"/>
    <wire from="(140,110)" to="(180,110)"/>
    <wire from="(340,160)" to="(340,190)"/>
    <wire from="(170,70)" to="(170,100)"/>
    <wire from="(260,150)" to="(260,240)"/>
    <wire from="(110,170)" to="(110,200)"/>
    <wire from="(380,70)" to="(380,160)"/>
    <wire from="(380,190)" to="(470,190)"/>
    <wire from="(270,150)" to="(300,150)"/>
    <wire from="(280,120)" to="(280,160)"/>
    <wire from="(190,160)" to="(210,160)"/>
    <wire from="(240,150)" to="(260,150)"/>
    <wire from="(160,160)" to="(160,210)"/>
    <wire from="(190,110)" to="(190,160)"/>
    <wire from="(290,170)" to="(300,170)"/>
    <wire from="(380,160)" to="(390,160)"/>
    <wire from="(110,200)" to="(250,200)"/>
    <wire from="(240,160)" to="(250,160)"/>
    <wire from="(110,150)" to="(120,150)"/>
    <wire from="(110,170)" to="(120,170)"/>
    <wire from="(200,190)" to="(340,190)"/>
    <wire from="(350,70)" to="(350,120)"/>
    <wire from="(370,90)" to="(370,150)"/>
    <wire from="(190,110)" to="(320,110)"/>
    <wire from="(380,170)" to="(380,190)"/>
    <wire from="(110,70)" to="(110,150)"/>
    <wire from="(100,80)" to="(100,160)"/>
    <wire from="(200,90)" to="(370,90)"/>
    <wire from="(200,170)" to="(200,190)"/>
    <wire from="(200,70)" to="(200,90)"/>
    <wire from="(170,150)" to="(170,240)"/>
    <wire from="(450,150)" to="(450,240)"/>
    <wire from="(170,100)" to="(270,100)"/>
    <wire from="(350,150)" to="(350,240)"/>
    <wire from="(180,150)" to="(210,150)"/>
    <wire from="(420,150)" to="(450,150)"/>
    <wire from="(70,210)" to="(160,210)"/>
    <wire from="(280,160)" to="(300,160)"/>
    <wire from="(330,150)" to="(350,150)"/>
    <wire from="(370,150)" to="(390,150)"/>
    <wire from="(420,160)" to="(440,160)"/>
    <wire from="(140,70)" to="(140,110)"/>
    <wire from="(180,110)" to="(180,150)"/>
    <wire from="(250,160)" to="(250,200)"/>
    <wire from="(320,70)" to="(320,110)"/>
    <wire from="(100,160)" to="(120,160)"/>
    <wire from="(290,180)" to="(440,180)"/>
    <wire from="(150,150)" to="(170,150)"/>
    <wire from="(330,160)" to="(340,160)"/>
    <wire from="(380,170)" to="(390,170)"/>
    <wire from="(150,160)" to="(160,160)"/>
    <wire from="(200,170)" to="(210,170)"/>
    <wire from="(270,100)" to="(270,150)"/>
    <wire from="(280,120)" to="(350,120)"/>
    <comp lib="0" loc="(70,210)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S4"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(350,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(200,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(150,150)" name="FA"/>
    <comp lib="0" loc="(380,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(170,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(420,150)" name="FA"/>
    <comp loc="(240,150)" name="FA"/>
    <comp lib="0" loc="(350,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(110,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(140,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="A2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(470,190)" name="Pin">
      <a name="facing" val="west"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Cin"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(260,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(170,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(290,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(330,150)" name="FA"/>
    <comp lib="0" loc="(320,70)" name="Pin">
      <a name="facing" val="south"/>
      <a name="tristate" val="false"/>
      <a name="label" val="B2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(450,240)" name="Pin">
      <a name="facing" val="north"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="south"/>
    </comp>
  </circuit>
</project>
